package com.mezz.bones.bff.app.adapter.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import cn.dev33.satoken.stp.StpUtil;
import com.mezz.bones.framework.base.domain.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhuang
 * @Date: 2024/8/30 19:02
 * @Description: TODO
 * @Version: 1.0
 **/

@RestController
@RequestMapping("/user/login")
@SaIgnore
@Api("用户登录")
@RequiredArgsConstructor
public class UserLoginController {

    @ApiOperation(("用户账号登录"))
    @PostMapping("/account/pwd")
    public Result<String> loginWithAccountAndPwdCase(){
//        userLoginCmdExecutor.execUserLoginWithAccountAndPwdCmd("","");
        return Result.OK(StpUtil.getTokenValue());
    }

}
